﻿
using Natural.Attributes;
using Natural.Managers;
using Natural.Providers;
using Natural.Model;

namespace Natural.Actions
{
    [Impl(Type = ImplType.Action,Name = "Update", Strategy = "Default", ApplyTo = typeof(object), Version = 0, Priority = 0)]
    public class Update<T> where T : class 
    {
        public virtual void Execute(ActionContext context, T entity, string includes)
        {
            Data.Update<T>(entity, includes);
        }
    }

    
}
